package bill.study.playground;

import java.util.ArrayList;
import java.util.List;

public class WhichClassLoader {
	
	public static void main(String [] args){
		List<String> list = new ArrayList<String>();

		System.out.println("class loader for list : " + list.getClass().getClassLoader());
		System.out.println("class loader for int array : " + new int[]{}.getClass().getClassLoader());
		System.out.println("class loader for String array : " + new String[]{}.getClass().getClassLoader());
		System.out.println("class loader for Object : " + new Object().getClass().getClassLoader());
		System.out.println("class loader for WhichClassLoader : " + new WhichClassLoader().getClass().getClassLoader());


	}

}
